<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      /*
        i=0,  console.log(0); i=1; 1<3
        i=1,  console.log(1); i=2; 2<3
        i=2,  console.log(2); i=3; 3<3
      */
      let i = 0;
      do {
        console.log(i);
        i++;
      } while (i < 3);
    </script>
  </body>
</html>
